<?php
/**
$string = strtolower($_SERVER[ 'HTTP_USER_AGENT' ]);
if(strpos($string, 'mobile') !== false){
	location('/mobile/login');
}
**/
	/**
	* 后台最公共文件，包含登录检查
	* @author zhufu <zhufu159239@163.com>
	* @version 1.0
	* @date 2012-08-09 15:11:17
	*/
	require_once $_site->get_handlepath('admin');
	require_once $_site->get_handlepath('city');

	$cookie = admin_fun_cookie();

	if(!$cookie){
		location_msg(L('1411'), '/admin/login', 0);
	}

	if($cookie['state'] != 1){
		//账号被禁用
		location_msg(L('1404'), '/admin/login', 0);
	}
	//获得当前的城市信息
	//$city_list = $_site->_area()->get_area_list();
	//城市列表不需要，只需要定位就可以了
	//$city_name = get_city_by_ip();
	//$cur_city=city_fun_get_city_by_name($city_name);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>顺运通后台应用管理</title>
	<script type="text/javascript" charset="utf-8" src="/plugin/cooperation_base.js?v=<?php echo $_site->site_config['site']['version']?>"></script>